<?php

/*
 * Helper to hold all text
 */

global $_TEXT;
$_TEXT = array(
    'intro' => 'Mon - Sat for 1yr - 8yrs from 10am.<br />Sundays starting from 12.30pm for 1yrs - 8yrs.<br />After school parties start from 4pm Mon-Fri for children 1yr - 11yrs.<br />Each party includes free entry to the centre (for party kids & adults), a dedicated host, party room for two hours & two free coffee / tea vouchers.<br />A deposit of 20% will be required on confirmation, and the remainder of the amount can be paid before the day or as you leave the centre on the day of the party.<br />All weekday parties on between 10am and 2pm get 10% off the final price of their party.',
    'optionsIntro' =>  'We have %count% great party options for you to choose from:',
    'packagePrice' => '$%priceFlat% - %includedKids% kids<br />$%priceExtraKid% per extra child',
    'packageDescriptionSuperSavings' => 'Comes with choice of 2 main meal & 1 sweets platters, unlimited water and cordial',
    'packageDescriptionB' => 'Comes with choice of 2 main meal & 2 sweets platters, unlimited water and cordial <b>PLUS</b>... A party bag each!',
    'packageDescriptionC' => 'Comes with choice of 3 main meal & 2 sweets platters, A party bag each, 1x2Lt soft drink, unlimited water and cordial <b>PLUS</b>... A free child pass to our Centre for the birthday boy/girl!',
    'packageDescriptionD' => 'Comes with choice of 3 main meal & 3 sweets platters <b>PLUS</b>... A party bag each, icy poles, 2x2Lt soft drink, unlimited water and cordial <b>PLUS</b>... A free family pass to our Centre!',
    'labelGuestCount' => 'Number of guests',
    'labelDate' => 'Date',
    'labelArrivalTime' => 'Arrival time',
    'hintArrivalTime' => 'Party room for 2 hours from this time',
    'labelFoodTime' => 'Food time',
    'hintFoodTime' => 'When should the food start coming out?',
    'labelContactFirstname' => 'First name',
    'labelContactLastname' => 'Last name',
    'labelContactPhone' => 'Phone',
    'labelContactEmail' => 'Email',
    'labelSubjectFirstname' => 'First name',
    'labelSubjectLastname' => 'Last name',
    'labelSubjectGender' => 'Gender',
    'labelSubjectAge' => 'Age',
    'hintSubjectAge' => 'What age are they turning?',
    'headingFoodOptions' => 'Food options',
    'headingPartyDetails' => 'Party details',
    'headingContactDetails' => 'Contact details',
    'headingBirthdayBoyGirlDetails' => 'Birthday boy/girl details',
    'totalCost' => 'Total cost',
    'mainMeals' => 'Main meal %number%',
    'sweets' => 'Sweets %number%',
    'headingAdultPlatters' => 'Adult platters',
    'adultPlattersExtraText' => 'Serves approx. 6 adults',
    'headingMoreOptions' => 'More options',
    'headingCharacters' => 'Upgrade to a character party room guest',
    'charactersDetails' => 'For the last 30 minutes of your party you can have a character come and play 1 pass the parcel game, photo opportunity with the character (BYO camera) and then the character will bring out the birthday cake, sing happy birthday, cut cake and hang till the end of the party to hand out lolly bags to the guests.',
    'labelCharacter' => 'Character',
    'optionNoCharacter' => '(No character)',
    'confirmation' => 'Thankyou for your booking, your reference number is %id%. We will contact you shortly to confirm all the details. A deposit of 20% will be required on confirmation, and the remainder of the amount can be paid before the day or as you leave the centre on the day of the party.<br />If you do not hear from us within 48 hours please give us a call.',
    'validationAgeDaysOfWeek' => 'You cannot choose this day & time of the week for a child of this age',
    'validationFoodTiming' => 'Food must come out at latest 45 minutes after arrival',
    'validationDateAvailable' => 'Sorry, there are no parties available on this date',
    'validationTimeSunday' => 'Bookings on Sundays must be after 12:30pm',
    'labelRoom' => 'Room',
    'headingOther' => 'Other',
    'labelNotes' => 'Notes',
);

function text($identifier, array $values = array()) {
    global $_TEXT;
    
    if (isset($_TEXT[$identifier])) {
        $output = $_TEXT[$identifier];
    
        foreach ($values as $valueIdentifier => $value) {
            $output = str_replace("%" . $valueIdentifier . "%", $value, $output);
        }
    
        return $output;
    }
    
    return "";
}